package com.hzsk.lisence.mapper;

import com.hzsk.lisence.entity.EmDeviceRelationEntity;
import com.hzsk.lisence.entity.EmSoftwareRelationEntity;
import com.hzsk.lisence.entity.request.NcProduceRequest;
import com.hzsk.lisence.entity.response.NcProduceDetail;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description :
 * @Date : 2024/8/20
 * @Author : ChenJin
 * @Version : v1.0.0
 **/
public interface EmDeviceRelationMapper {
    
    int insertDeviceRelationEntity(EmDeviceRelationEntity emDeviceRelationEntity);

    int updateDeviceRelationEntity(EmDeviceRelationEntity emDeviceRelationEntity);

    EmDeviceRelationEntity selectDeviceRelationById(Integer id);
    
    EmDeviceRelationEntity selectDeviceRelastionByNcAndIpcAndIdc(EmDeviceRelationEntity emDeviceRelationEntity);

    List<EmDeviceRelationEntity> selectNcProduceList(NcProduceRequest ncProduceRequest);
    
    int updateDeviceRelationStatus(EmDeviceRelationEntity emDeviceRelationEntity);
    
    int selectCountByOrderCode(EmDeviceRelationEntity emDeviceRelationEntity);
    
    List<EmDeviceRelationEntity> getDeviceRelationByIdcProductCode(@Param("idcProductCode") String idcProductCode);
}
